<div class="line-label">
  <%= page_entries_info(@authors) %>
</div>

<% if @authors.size > 0 %>
  <% paginated_section(@authors, options_will_paginate) do %>

    <table>
      <tr>
        <th><%= t('activerecord.attributes.author.last_name') %></th>
        <th><%= t('activerecord.attributes.author.first_name') %></th>
        <th><%= t('activerecord.attributes.author.country') %></th>
        <th><%= t('activerecord.attributes.author.cataloged') %></th>
      </tr>

      <% @authors.each do |author| %>
        <tr>
          <td><%=h author.last_name %></td>
          <td><%=h author.first_name %></td>
          <td><%=h author.country.name %></td>
          <td><%=h get_boolean_description author.cataloged %></td>
          <td><%= link_to  t('btn_show'), author %></td>
          <td><%= link_to  t('btn_edit'), edit_author_path(author) %></td>
          <td><%= link_to  t('btn_destroy'), author, :confirm => t('msg_sure_destroy?'), :method => :delete %></td>
        </tr>
      <% end %>
    </table>
  <% end %>
<% end %>

<%= link_to t('authors.index.btn_new_author'), new_author_path %>